package loes0;

public class Stichproben {

	public static SortableQueue cq;

	public Stichproben() {
		super();
		this.cq = new SortableQueue();

	}

	public Customer[] sortableQueueToArray() {
		Customer c;
		int cqsize = cq.size();
		Customer customers[] = new Customer[cqsize];
		for (int i = 0; i < cqsize; i++) {
			c = (Customer) cq.popNextElement();
			customers[i] = c;

		}
		return customers;
	}
	
	public void pushCustomer(Customer c){
		cq.pushNewElement(c);
	}

}
